// Internal action code for project skygarden

package math;

import env.GardenModel;
import jason.asSemantics.*;
import jason.asSyntax.*;

@SuppressWarnings("serial")
public class getVegAtStore extends DefaultInternalAction {

	GardenModel model = GardenModel.get();
    @Override
    public Object execute(TransitionSystem ts, Unifier un, Term[] args) throws Exception {
    	int value = model.VegetableJustPlantedAtStore();
    	return un.unifies(args[0], new NumberTermImpl(value));
    }
}
